home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
misc
/
sci
/
MathPlot.lha
/
MathPlot
/
Macros
/
DGL.rexx
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
OS/2 REXX Batch file
|
1993-08-08
|
392 b
|
32 lines
/* Test of getintervall2 */
address "MPlot_ARexx"
options results
x0=0
y0=0
dx = 0.1
x=x0
y=y0
/* Abbruchbedingung */
getintervall2 stem a.
maxx = a.xmaxreal
/* Zum Vergleich */
setcolor plotcolor 1
/* clear force */
plot 0 normal
setcolor plotcolor 2
do while x < maxx
evalstring "cos(x) x=" x
dy = result*dx
y = y + dy
x = x + dx
line x0 y0 x y "pixel=off"
x0 = x
y0 = y
end